package com.zb.framework.service.impl;

import com.zb.framework.api.microservice.ExposeMicroService;
import com.zb.zeus.common.core.web.domain.AjaxResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author jfu10@jmc.com.cn
 * @Created Date: 2024/4/9 16:37
 * @ClassName ExposeMicroServiceImpl
 * @Version: 1.0
 */
@Slf4j
@Service
@Primary
public class ExposeMicroServiceImpl implements ExposeMicroService {
    @Override
    public AjaxResult exposeDemoMethod(String name) {
        log.info("request handle without controller layer, name:{}", name);
        return AjaxResult.success("post hello world " + name + " without controller");
    }

    @Override
    public AjaxResult exposeGetMethod(String name) {
        log.info("get request handle without controller layer, name:{}", name);
        return AjaxResult.success("get hello world " + name + " without controller");
    }
}
